
<fieldset><legend>我的银行帐号</legend>
<table>
	<tr align="center">
		<th width="40">序号</th>
		<th>开户行</th>
		<th>分支行</th>
		<th>开户名</th>
		<th>账号</th>
		<th>状态</th>
	</tr>
	{[foreach name=outer key=key item=item from=$my]} {[assign var="no" value="`$key+$pager->from+1`"]}
	<tr align="center" onMouseOver="this.style.backgroundColor='#D2E4FC'" onMouseOut="this.style.backgroundColor=''">
		<td>{[$no]}</td>
		<td>{[$item.bank]}</td>
		<td>{[$item.branch]}</td>

		<td>{[$item.name]}</td>
		<td>{[$item.code]}</td>
		<td>{[$item.status_t]}</td>
	</tr>
	{[/foreach]}
</table>
</fieldset>

<fieldset><legend>添加银行帐号</legend>
<form id="form_add"><input type="hidden" name="id" value="{[$smarty.request.id]}" />
<input type="hidden" name="type" value="1" />
<table>
	<tr>
		<td align="right">员工：</td>
		<td colspan="3">{[$emp.name]}({[$emp.id]})</td>
	</tr>
	<tr>
		<td align="right">开户行：</td>
		<td colspan="3"><input type="text" name="bank" id="bank" size="20" value=""> <select name='bank_t' id='bank_t'>
			{[html_options options=$bank_option selected=-]}
		</select></td>
	</tr>
	<tr>
		<td align="right">分支行：</td>
		<td colspan="3"><input type="text" name="branch" id="branch" size="32" value="" disabled></td>
	</tr>
	<tr id="label_4">
		<td align="right">联行号：</td>
		<td colspan="3"><input type="text" name="bankcode" id="bankcode" size="32" value="" title="请输入分支行名称拼音首字母，然后选择并回车即可，如深圳市新沙支行，输入szsxszx"></td>
	</tr>
	<tr>
		<td width="20%" align="right">省份：</td>
		<td width="30%"><input type="text" name="province" id="province" size="12" value="广东" title="请输入省份名称拼音首字母，然后选择并回车即可。如广东，输入gd"></td>
		<td width="20%" align="right"></td>
		<td width="30%"></td>
	</tr>
	<tr>
		<td align="right">市县：</td>
		<td><input type="text" name="city" id="city" size="12" value="深圳"></td>
		<td align="right">区号：</td>
		<td><input type="text" name="zone" id="zone" size="8" value="0755"></td>
	</tr>
	<tr>
		<td align="right">户名：</td>
		<td colspan="3"><input type="text" name="name" size="12" value="{[$emp.name]}" disabled></td>
	</tr>
	<tr>
		<td align="right">账号：</td>
		<td colspan="3"><input type="text" name="code" id="code" size="20" value=""> <label id="code_t"></label></td>
	</tr>
	<tr>
		<td align="right">备注：</td>
		<td colspan="3"><textarea rows="3" name="content" cols="55">{[$result.content]}</textarea></td>
	</tr>
</table>
</form>
</fieldset>

<script type="text/javascript"
	src="js/finance/bank/bank.js?r={[$smarty.now]}"></script>
<script type="text/javascript"
	src="js/emp/bank/add.js?r={[$smarty.now]}"></script>
